/* Copyright 2018 JDCLOUD.COM

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http:#www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.





Contact: 

NOTE: This class is auto generated by the jdcloud code generator program.
*/

 

#ifndef CommonModel_h
#define CommonModel_h

@interface SimpleResponses :NSObject

/// Request ID
@property (strong,nonatomic,nonnull)  NSString*  requestId;


-(id) initWithRequestId:(NSString*) requestId;
-(NSMutableDictionary*) dictionary;

-(id) initWithDic:(NSDictionary*)dictionary;                    
@end
@interface Quota :NSObject

/// 配额项的名称
@property (strong,nonatomic,nonnull)  NSString*  name;

/// 配额
@property (strong,nonatomic,nonnull)  NSNumber*  max;

/// 已使用的数目
@property (strong,nonatomic,nonnull)  NSNumber*  used;


-(id) initWithName:(NSString*) name
    max:(NSNumber*)max
    used:(NSNumber*)used;
-(NSMutableDictionary*) dictionary;

-(id) initWithDic:(NSDictionary*)dictionary;                    
@end
@interface Filter :NSObject

/// 过滤条件的名称
@property (strong,nonatomic,nonnull)  NSString*  name;

/// 过滤条件的操作符，默认eq
@property (strong,nonatomic,nonnull)  NSString*  operatorValue;

/// 过滤条件的值
@property (strong,nonatomic,nonnull)  NSArray<NSString*>*  values;


-(id) initWithName:(NSString*) name
    operatorValue:(NSString*)operatorValue
    values:(NSArray<NSString*>*)values;
-(NSMutableDictionary*) dictionary;

-(id) initWithDic:(NSDictionary*)dictionary;                    
@end
@interface TagFilter :NSObject

/// Tag键
@property (strong,nonatomic,nonnull)  NSString*  key;

/// Tag值
@property (strong,nonatomic,nonnull)  NSArray<NSString*>*  values;


-(id) initWithKey:(NSString*) key
    values:(NSArray<NSString*>*)values;
-(NSMutableDictionary*) dictionary;

-(id) initWithDic:(NSDictionary*)dictionary;                    
@end
@interface Err :NSObject

/// 同http code
@property (strong,nonatomic,nonnull)  NSNumber*  code;

/// Details
@property (strong,nonatomic,nonnull)  NSObject*  details;

/// Message
@property (strong,nonatomic,nonnull)  NSString*  message;

/// 具体错误
@property (strong,nonatomic,nonnull)  NSString*  status;


-(id) initWithCode:(NSNumber*) code
    details:(NSObject*)details
    message:(NSString*)message
    status:(NSString*)status;
-(NSMutableDictionary*) dictionary;

-(id) initWithDic:(NSDictionary*)dictionary;                    
@end
@interface Sort :NSObject

/// 排序条件的名称
@property (strong,nonatomic,nonnull)  NSString*  name;

/// 排序条件的方向
@property (strong,nonatomic,nonnull)  NSString*  direction;


-(id) initWithName:(NSString*) name
    direction:(NSString*)direction;
-(NSMutableDictionary*) dictionary;

-(id) initWithDic:(NSDictionary*)dictionary;                    
@end
@interface ErrorItem :NSObject

/// 出错资源ID
@property (strong,nonatomic,nonnull)  NSString*  idValue;

/// 错误码，同标准code
@property (strong,nonatomic,nonnull)  NSNumber*  code;

/// Details
@property (strong,nonatomic,nonnull)  NSObject*  details;

/// Message
@property (strong,nonatomic,nonnull)  NSString*  message;

/// 具体错误，同标准status
@property (strong,nonatomic,nonnull)  NSString*  status;


-(id) initWithId:(NSString*) idValue
    code:(NSNumber*)code
    details:(NSObject*)details
    message:(NSString*)message
    status:(NSString*)status;
-(NSMutableDictionary*) dictionary;

-(id) initWithDic:(NSDictionary*)dictionary;                    
@end
@interface BatchResultDetail :NSObject

/// 操作成功的资源个数
@property (strong,nonatomic,nonnull)  NSNumber*  successCount;

/// 操作失败的资源及原因
@property (strong,nonatomic,nonnull)  NSArray<ErrorItem*>*  failed;


-(id) initWithSuccessCount:(NSNumber*) successCount
    failed:(NSArray<ErrorItem*>*)failed;
-(NSMutableDictionary*) dictionary;

-(id) initWithDic:(NSDictionary*)dictionary;                    
@end

#endif /* CommonModel_h */
